package com.example.hibernatevalidatebean.entity;

import com.example.hibernatevalidatebean.api.IXJValidate;

import javax.validation.constraints.NotNull;

/**
 * @version 1.0
 * @program: hibernate-validate-bean
 * @packageName: com.example.hibernatevalidatebean.entity
 * @className Employee
 * @description: 专门用作controller校验实体,必须要有get/set方法，才能在contorller中自动转化json
 * @author: xj
 * @create: 2021-01-18 17:03:24
 **/
public class Employee {


    @NotNull()
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
